home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 26 / AACD 26.iso / AACD / System / XFD / Developer / Sources / C / ReadMe < prev    next >
Encoding:
Text File  |  2001-09-16  |  1.4 KB  |  36 lines

  1. This stuff was written to demonstarte how to make xfd slaves with C
  2. language (and because I had the source codes in C :-)
  3.  
  4. These examples use SAS-C as compiler, but it should be possible to use
  5. any other C compiler as well.
  6. Some things are important, when you use another compiler: 
  7. - Either extheader.o or ExeHead.o must be linked as first file.
  8. - You have to link without startup code.
  9. - You should use global data model.
  10. - You may not use any functions, which require dos.library in xfd Slave
  11.   version (with extheader.o).
  12. - Maxon C for example does not support local library bases.
  13.  
  14. There are two possible file types, which can be created:
  15.  
  16. 1) Three xfd Slaves called UNIX-Compress, GZip and LHA3. This is done by
  17.    linking extheader.o as first object.
  18.    Call 'smake' or 'smake XFD' to get this result.
  19. 2) Three normal executables, which enables you to test your routines. This
  20.    is done by linking ExeHead.o as first object.
  21.    Call 'smake EXE' to get this result.
  22.    The executable can get two parameters: the infile and possibly an
  23.    outfile. When no outfile is given, then the save routine is skipped.
  24. 3) Call 'smake All' to get both results.
  25.  
  26. Object files are created in T: and thus need not to be deleted from
  27. source directory.
  28.  
  29. The files extheader.c and ExeHead.c are made in a way which allows to use
  30. them for other slaves as well.
  31.  
  32. Dirk Stöcker <stoecker@epost.de>
  33.  
  34. 14th July 1999
  35.  
  36.